package com.example.moduletwo.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.example.baselibrary.activity.BaseNewActivity;
import com.example.baselibrary.bean.PublicViewHolder;
import com.example.moduletwo.R;



/**
 * Created by PC on 2018/4/11.
 */
public class ModuleTwoMainActivity extends BaseNewActivity {

    @Override
    protected int initLayoutRes() {
        return R.layout.activity_main_module_two;
    }

    @Override
    protected PublicViewHolder initViewHolderObject() {
        return null;
    }

    @Override
    protected void baseOnClick(int viewId) {

    }

    @Override
    protected void initView(@Nullable Bundle bundle) {
        super.initView(bundle);
        findViewById(R.id.tv_ammt_text).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        findViewById(R.id.tv_ammt_mvp).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_ammt_mvp_fragment).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPFragmentActivity.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_ammt_mvp_activity_one).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPActivityOne.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_ammt_mvp_activity_listview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPActivityListView.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_ammt_mvp_activity_listview_two).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPActivityListViewTwo.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_ammt_mvp_activity_listview_three).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPActivityListViewThree.class);
                startActivity(intent);
            }
        });

        findViewById(R.id.tv_ammt_mvp_activity_listview_five).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ModuleTwoMainActivity.this,ModuleTwoMVPActivityListViewFive.class);
                startActivity(intent);
            }
        });
    }
}